import pymysql
conn = pymysql.connect(host="localhost",port=3306,user="root",password="l15840207763",db="auth_user",charset="utf8")
cursor = conn.cursor()
cursor.execute("select * from user_info")
data = cursor.fetchall()
print("数据库数据",data)
cursor.close()
conn.close()
